package com.wfuhui.modules.store.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfuhui.modules.store.dao.CooperateDao;
import com.wfuhui.modules.store.entity.CooperateEntity;
import com.wfuhui.modules.store.service.CooperateService;



@Service("cooperateService")
public class CooperateServiceImpl implements CooperateService {
	@Autowired
	private CooperateDao cooperateDao;
	
	@Override
	public CooperateEntity queryObject(Integer id){
		return cooperateDao.queryObject(id);
	}
	
	@Override
	public List<CooperateEntity> queryList(Map<String, Object> map){
		return cooperateDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cooperateDao.queryTotal(map);
	}
	
	@Override
	public void save(CooperateEntity cooperate){
		cooperateDao.save(cooperate);
	}
	
	@Override
	public void update(CooperateEntity cooperate){
		cooperateDao.update(cooperate);
	}
	
	@Override
	public void delete(Integer id){
		cooperateDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cooperateDao.deleteBatch(ids);
	}
	
}
